import Vue from 'vue'
import App from './App.vue'
import swiper from './components/swiper.vue'
import songs from './components/songs.vue'
import mv from './components/mv.vue'
import player from './components/player.vue'
import comments from './components/comments.vue'


// 下载路由
// 导入路由
import VueRouter from 'vue-router'
// 注册
Vue.use(VueRouter)
// 实例化
const router = new VueRouter({
  routes: [

    {
      path: '/',
      component: swiper
    },
    {
      path: '/songs',
      component: songs
    },
    {
      path: '/mv',
      component: mv
    },
    {
      path: '/player',
      component: player
    }, {
      path: '/comments',
      component: comments
    }
  ]
})
// 注入 new Vue
// 路由出口

Vue.config.productionTip = false
// 导入注册饿了么UI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
